package cn.practice.chat.feign.service;

import cn.practice.chat.lang.Result;
import cn.practice.chat.response.user.UserPasswordResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName UserPasswordFeign
 * @Description:
 * @Author A-TAO
 * @Date 2022/10/31
 * @Version V1.0
 **/
@FeignClient(value = "user-server", contextId = "userPasswordFeign")
public interface UserPasswordFeign {

    @GetMapping("/feign/getUserDetail")
    Result<UserPasswordResult> getUserDetail(@RequestParam("username") String username);

}
